const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    year: {
        type: String
    }, //学年
    name: {
        type: String
    }, //名字
    dean: {
        type: String
    }, //班主任
    nid: {
        type: String
    }, //编号
    superior: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'Specialty'
    }
})

module.exports = mongoose.model('Class', schema)